import assessCheckApi from './api'
import { axios } from '@/utils/request'

var fywflcode = '001002'
export function ocalityPostAction(data) {
    //console.log('字典传参',data)
    return axios({
      url: assessCheckApi.dict,
      method:'get' ,
      params:data,
      url_1:'outside'
    })
  }
//批量删除
export function deleteArrServe(params){
  return axios({
    url: assessCheckApi.deleteArr,
    method:'delete' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}

//导出
export function leadingOutExccel(params){
  return axios({
    url: assessCheckApi.leadingOutExccel,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}
//查看答卷详情
export function answerSheetList(data){
  return axios({
    url: assessCheckApi.detailedAnswers,
    method:'get' ,
    params:data?{...data,fywflcode:fywflcode?fywflcode:(data.fywflcode?data.fywflcode:'')}:{},
    url_1:'outside'
  })
}

//查询成绩
export function queryResultsListServe(params){
  return axios({
    url: assessCheckApi.queryResultsList,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside',
  })
}

//修改分数

export function updateDjtmFs(params){
  return axios({
    url: assessCheckApi.updateDjtmFs,
    method:'post' ,
    data:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside',
  })
}



export function reloadDjfs(params){
  return axios({
    url: assessCheckApi.reloadDjfs,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside',
  })
}

